package com.wqm.step.pojo;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlRootElement;

//指定序列化  ( 转换xml , json )对象名字
@XmlRootElement(name = "person")
public class Person implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Integer pid;

	private Integer age;

	private String name;

	private String address;

	private String phone;

	public Integer getPid() {
		return pid;
	}

	public Person() {
		super();
		// TODO Auto-generated constructor stub
	}

	public Person(Integer age, String name, String address, String phone) {
		super();
		this.age = age;
		this.name = name;
		this.address = address;
		this.phone = phone;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name == null ? null : name.trim();
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address == null ? null : address.trim();
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone == null ? null : phone.trim();
	}

	@Override
	public String toString() {
		return "Person [pid=" + pid + ", age=" + age + ", name=" + name + ", address=" + address + ", phone=" + phone
				+ "]";
	}

}